package com.shengqin.controller.dawei;

import com.dtflys.forest.annotation.*;
import com.shengqin.controller.dawei.dto.*;

@BaseRequest(
        baseURL = "http://127.0.0.1:12345/",     // 默认域名
        headers = {
                "Accept:*/*",
                "Content-Type:application/json;charset=UTF-8"
        },
        sslProtocol = "TLS"                    // 默认单向SSL协议
)
public interface FaceAiClient {
    @GetRequest(url = "/server_version")
    ServerVersionResp getServerVersion(@Header HeaderParams headerParams);

    @PostRequest(url = "/get_feature")
    FeatureResp getFeature(@JSONBody FeatureReq featureReq);

    @PostRequest(url = "/face_manage/add_face")
    FeatureResp addFace(@JSONBody AddFaceReq addFaceReq);

    @PostRequest(url = "/face_manage/update_face")
    FeatureResp updateFace(@JSONBody AddFaceReq addFaceReq);

    @PostRequest(url = "/face_manage/del_face")
    FeatureResp delFace(@JSONBody DelFaceReq delFaceReq);

    @PostRequest(url = "/face_manage/compare")
    CompareFaceResp compare(@JSONBody CompareFaceReq compareFaceReq);
}
